﻿
@using System.Web.Mvc.Html
@using Web7.Container
@using Web7;
@model   PagedList<Web7.Core.Security.User>
@{
    Layout = Html.GetManagementLayout();
    ViewBag.Title = "User List Magement";
   
}
<div >
           
    <table border="1" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <td>
                    全选
                </td>
                <td>
                    UserName
                </td>
                <td>
                    Email
                </td>
                <td>操作</td>
            </tr>
        </thead>
        @foreach (var item in Model)
        {
            <tr id="row-@item.Id">
                <td>
                    <input type="checkbox" name="uid" value="@item.Id" />
                </td>
                <td>
                    @item.Username
                </td>
                <td>
                    @item.Email
                </td>
                <td>
                    @Html.ActionLink("详情", "GetUser", "Account", new { id = item.Id }, null)
                    |
                    @Html.ActionLink("编辑", "UserEdt", "Account", new { id = item.Id }, null)
                    |
                    @Html.ActionLink("删除", "UserDel", "Account", new { id = item.Id }, null)
                </td>
            </tr>
        }
        <tr>
            <td colspan="3">
                @Html.Raw(Html.Pager("page", Model.PageSize, Model.TotalItemCount))
            </td>
        </tr>
    </table>
</div>

